<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{https://www.baidu.com/}" th:target="blank">绝对地址</a>
<br>
<a   th:href="@{/p/p1}">相对路径</a>
<br>
</body>
</html>